import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Author: Daniel Michalski
 * Date: 25.02.13
 */

public class Main {
    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(
                new InputStreamReader(System.in));

        String[] str = new String[100];

        System.out.println("Wpisz wiersze tekstu");
        System.out.println("Wpisz 'stop', aby zakończyć");

        for (int i = 0; i < 100; i++) {
            str[i] = br.readLine();
            if (str[i].equals("stop")) break;
        }

        System.out.println("\nOto wpisane dane:");

        for (int i = 0; i < 100; i++) {
            if (str[i].equals("stop")) break;
            System.out.println(str[i]);
        }


    }
}
